package com.qf.forum.client;


import com.qf.base.file.QRCodeFTO;
import com.qf.base.forum.IconDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "file-service")
public interface FileClient {
    @PostMapping("/file/img")
    String saveImage(@RequestBody IconDTO iconDTO);
    @PostMapping("/file/qrcode")
    String getQRC(@RequestBody QRCodeFTO qrCodeFTO);
    @PostMapping("file/mp4newGif")
    String uploadMP4newGif(MultipartFile file);
}
